﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace mozhi.smarterp.AuthorCenter.Migrations
{
    public partial class _202505301120 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "OpenApiInfoId",
                table: "AbpPermissionItemApiGrant",
                newName: "ApiMetadataId");

            migrationBuilder.RenameIndex(
                name: "IX_AbpPermissionItemApiGrant_PermissionItemId_OpenApiInfoId",
                table: "AbpPermissionItemApiGrant",
                newName: "IX_AbpPermissionItemApiGrant_PermissionItemId_ApiMetadataId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "ApiMetadataId",
                table: "AbpPermissionItemApiGrant",
                newName: "OpenApiInfoId");

            migrationBuilder.RenameIndex(
                name: "IX_AbpPermissionItemApiGrant_PermissionItemId_ApiMetadataId",
                table: "AbpPermissionItemApiGrant",
                newName: "IX_AbpPermissionItemApiGrant_PermissionItemId_OpenApiInfoId");
        }
    }
}
